package com.sdry.web.controller.cb;

import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("menu")
public class MenuController extends BaseController{
    /**
     * 展示tree
     *
     * @param model
     * @return
     */
    @ApiOperation(value = "/showMenu", httpMethod = "GET", notes = "展示菜单")
    @GetMapping(value = "showMenu")
    public String showMenu(Model model) {
        //JSONArray ja = menuService.getMenuJsonList();
        //model.addAttribute("menus", ja.toJSONString());
        return "/system/menu/menuList";
    }

}
